[INFO] cloning repository https://github.com/notBafio/bafiOS
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/notBafio/bafiOS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FnotBafio%2FbafiOS", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FnotBafio%2FbafiOS'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a578e03c7b83ab7b35077fedc5edd49f22aef58b
[INFO] fixing notBafio/bafiOS against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FnotBafio%2FbafiOS" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-1-tc1/source/.cargo/config.toml
[INFO] removed /workspace/builds/worker-1-tc1/source/rust-toolchain.toml
[INFO] started tweaking git repo https://github.com/notBafio/bafiOS
[INFO] finished tweaking git repo https://github.com/notBafio/bafiOS
[INFO] tweaked toml for git repo https://github.com/notBafio/bafiOS written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/notBafio/bafiOS on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d7b7707062084ba62700eb6434bd0d2481d77e86d8be3172942d0dee6301aff5
[INFO] running `Command { std: "docker" "start" "d7b7707062084ba62700eb6434bd0d2481d77e86d8be3172942d0dee6301aff5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d7b7707062084ba62700eb6434bd0d2481d77e86d8be3172942d0dee6301aff5" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d7b7707062084ba62700eb6434bd0d2481d77e86d8be3172942d0dee6301aff5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d7b7707062084ba62700eb6434bd0d2481d77e86d8be3172942d0dee6301aff5" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking libk v0.1.0 (/opt/rustwide/workdir/libk)
[INFO] [stderr]    Compiling stage2 v0.1.0 (/opt/rustwide/workdir/stage2)
[INFO] [stderr]    Compiling bootloader v0.1.0 (/opt/rustwide/workdir/bootloader)
[INFO] [stderr]    Compiling stage3 v0.1.0 (/opt/rustwide/workdir/stage3)
[INFO] [stderr]    Compiling kernel v0.1.0 (/opt/rustwide/workdir/kernel)
[INFO] [stdout] warning: unused import: `alloc::vec::Vec`
[INFO] [stdout]  --> libk/src/io.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use alloc::vec::Vec;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dealloc`
[INFO] [stdout]  --> libk/src/net.rs:1:28
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloc::{Layout, alloc, dealloc};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `inb`
[INFO] [stdout]  --> libk/src/serial.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::port::{inb, outb};
[INFO] [stdout]   |                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec::Vec`
[INFO] [stdout]  --> libk/src/io.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use alloc::vec::Vec;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dealloc`
[INFO] [stdout]  --> libk/src/net.rs:1:28
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloc::{Layout, alloc, dealloc};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `inb`
[INFO] [stdout]  --> libk/src/serial.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::port::{inb, outb};
[INFO] [stdout]   |                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloc::vec::Vec`
[INFO] [stdout]  --> libk/src/io.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use alloc::vec::Vec;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dealloc`
[INFO] [stdout]  --> libk/src/net.rs:1:28
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloc::{Layout, alloc, dealloc};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `inb`
[INFO] [stdout]  --> libk/src/serial.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::port::{inb, outb};
[INFO] [stdout]   |                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot use register `bx`: rbx is used internally by LLVM and cannot be used as an operand for inline asm
[INFO] [stdout]   --> libk/src/syscall.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |             in("ebx") ebx,
[INFO] [stdout]    |             ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `signature`
[INFO] [stdout]    --> libk/src/boot.rs:135:21
[INFO] [stdout]     |
[INFO] [stdout] 135 |                 let signature = core::str::from_utf8_unchecked(&entry.signature);
[INFO] [stdout]     |                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `elf`
[INFO] [stdout]    --> libk/src/elf.rs:383:18
[INFO] [stdout]     |
[INFO] [stdout] 383 | fn handle_pltrel(elf: &Elf32Load) -> Result<(), &'static str> {
[INFO] [stdout]     |                  ^^^ help: if this is intentional, prefix it with an underscore: `_elf`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl`
[INFO] [stdout]   --> bootloader/src/main.rs:23:1
[INFO] [stdout]    |
[INFO] [stdout] 23 | / fn panic(_info: &PanicInfo) -> ! {
[INFO] [stdout] 24 | |     loop {}
[INFO] [stdout] 25 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the lang item is first defined in crate `std` (which `test` depends on)
[INFO] [stdout]    = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/622891a4e29178280638a6b63a8908bde2c0c854/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ebc3593764c44f83.rmeta
[INFO] [stdout]    = note: second definition in the local crate (`bootloader`)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0152`.
[INFO] [stdout] 
[INFO] [stdout] error: cannot use register `bx`: rbx is used internally by LLVM and cannot be used as an operand for inline asm
[INFO] [stdout]   --> libk/src/syscall.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |             in("ebx") ebx,
[INFO] [stdout]    |             ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `signature`
[INFO] [stdout]    --> libk/src/boot.rs:135:21
[INFO] [stdout]     |
[INFO] [stdout] 135 |                 let signature = core::str::from_utf8_unchecked(&entry.signature);
[INFO] [stdout]     |                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> libk/src/heap.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let mut data_end = segment_end;
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot use register `bx`: rbx is used internally by LLVM and cannot be used as an operand for inline asm
[INFO] [stdout]   --> libk/src/syscall.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |             in("ebx") ebx,
[INFO] [stdout]    |             ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:215:62
[INFO] [stdout]     |
[INFO] [stdout] 215 |                 let header_ptr = find_header_for_allocation(&*free_block_it, &layout);
[INFO] [stdout]     |                                                              ^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> libk/src/heap.rs:199:5
[INFO] [stdout]     |
[INFO] [stdout] 199 |     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:219:44
[INFO] [stdout]     |
[INFO] [stdout] 219 |                         let segment = &mut *free_block_it;
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:222:25
[INFO] [stdout]     |
[INFO] [stdout] 222 |                         (*header).set_end(used_end);
[INFO] [stdout]     |                         ^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:239:33
[INFO] [stdout]     |
[INFO] [stdout] 239 | ...                   (*prev_ptr).next_segment = segment.next_segment;
[INFO] [stdout]     |                       ^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bootloader` (bin "bootloader" test) due to 1 previous error
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:243:32
[INFO] [stdout]     |
[INFO] [stdout] 243 |                         return (*header).get_start();
[INFO] [stdout]     |                                ^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:247:41
[INFO] [stdout]     |
[INFO] [stdout] 247 |                         free_block_it = (*free_block_it).next_segment;
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `elf`
[INFO] [stdout]    --> libk/src/elf.rs:383:18
[INFO] [stdout]     |
[INFO] [stdout] 383 | fn handle_pltrel(elf: &Elf32Load) -> Result<(), &'static str> {
[INFO] [stdout]     |                  ^^^ help: if this is intentional, prefix it with an underscore: `_elf`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `signature`
[INFO] [stdout]    --> libk/src/boot.rs:135:21
[INFO] [stdout]     |
[INFO] [stdout] 135 |                 let signature = core::str::from_utf8_unchecked(&entry.signature);
[INFO] [stdout]     |                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl`
[INFO] [stdout]    --> stage2/src/main.rs:127:1
[INFO] [stdout]     |
[INFO] [stdout] 127 | / fn panic(_info: &PanicInfo) -> ! {
[INFO] [stdout] 128 | |     Terminal::new().write_string("[x] Bootloader stage 2 panicked! x_x");
[INFO] [stdout] 129 | |     loop {}
[INFO] [stdout] 130 | | }
[INFO] [stdout]     | |_^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the lang item is first defined in crate `std` (which `test` depends on)
[INFO] [stdout]     = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/622891a4e29178280638a6b63a8908bde2c0c854/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ebc3593764c44f83.rmeta
[INFO] [stdout]     = note: second definition in the local crate (`stage2`)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0152`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `libk` (lib) due to 1 previous error; 12 warnings emitted
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> libk/src/heap.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let mut data_end = segment_end;
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl`
[INFO] [stdout]   --> stage3/src/main.rs:52:1
[INFO] [stdout]    |
[INFO] [stdout] 52 | / fn panic(_info: &PanicInfo) -> ! {
[INFO] [stdout] 53 | |     println!("[x] Bootloader panicked at stage 3! x_x");
[INFO] [stdout] 54 | |     loop {}
[INFO] [stdout] 55 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the lang item is first defined in crate `std` (which `test` depends on)
[INFO] [stdout]    = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/622891a4e29178280638a6b63a8908bde2c0c854/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ebc3593764c44f83.rmeta
[INFO] [stdout]    = note: second definition in the local crate (`stage3`)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot use register `bx`: rbx is used internally by LLVM and cannot be used as an operand for inline asm
[INFO] [stdout]   --> stage3/src/main.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |             out("ebx") ebx,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0152`.
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:215:62
[INFO] [stdout]     |
[INFO] [stdout] 215 |                 let header_ptr = find_header_for_allocation(&*free_block_it, &layout);
[INFO] [stdout]     |                                                              ^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> libk/src/heap.rs:199:5
[INFO] [stdout]     |
[INFO] [stdout] 199 |     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:219:44
[INFO] [stdout]     |
[INFO] [stdout] 219 |                         let segment = &mut *free_block_it;
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:222:25
[INFO] [stdout]     |
[INFO] [stdout] 222 |                         (*header).set_end(used_end);
[INFO] [stdout]     |                         ^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:239:33
[INFO] [stdout]     |
[INFO] [stdout] 239 | ...                   (*prev_ptr).next_segment = segment.next_segment;
[INFO] [stdout]     |                       ^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:243:32
[INFO] [stdout]     |
[INFO] [stdout] 243 |                         return (*header).get_start();
[INFO] [stdout]     |                                ^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:247:41
[INFO] [stdout]     |
[INFO] [stdout] 247 |                         free_block_it = (*free_block_it).next_segment;
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `stage3` (bin "stage3" test) due to 1 previous error
[INFO] [stderr] error: could not compile `stage2` (bin "stage2" test) due to 1 previous error
[INFO] [stdout] error: cannot use register `bx`: rbx is used internally by LLVM and cannot be used as an operand for inline asm
[INFO] [stdout]    --> stage2/src/main.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |             in("bx") best_mode
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `stage3` (bin "stage3") due to 1 previous error
[INFO] [stdout] warning: unused variable: `elf`
[INFO] [stdout]    --> libk/src/elf.rs:383:18
[INFO] [stdout]     |
[INFO] [stdout] 383 | fn handle_pltrel(elf: &Elf32Load) -> Result<(), &'static str> {
[INFO] [stdout]     |                  ^^^ help: if this is intentional, prefix it with an underscore: `_elf`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot use register `bx`: rbx is used internally by LLVM and cannot be used as an operand for inline asm
[INFO] [stdout]    --> stage2/src/main.rs:181:17
[INFO] [stdout]     |
[INFO] [stdout] 181 |                 inout("ebx") contid,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> stage2/src/main.rs:226:25
[INFO] [stdout]     |
[INFO] [stdout] 226 |     let mode_info_ptr = unsafe { core::ptr::addr_of!(VBE_MODE) as usize };
[INFO] [stdout]     |                         ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> libk/src/heap.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let mut data_end = segment_end;
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:215:62
[INFO] [stdout]     |
[INFO] [stdout] 215 |                 let header_ptr = find_header_for_allocation(&*free_block_it, &layout);
[INFO] [stdout]     |                                                              ^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> libk/src/heap.rs:199:5
[INFO] [stdout]     |
[INFO] [stdout] 199 |     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:219:44
[INFO] [stdout]     |
[INFO] [stdout] 219 |                         let segment = &mut *free_block_it;
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:222:25
[INFO] [stdout]     |
[INFO] [stdout] 222 |                         (*header).set_end(used_end);
[INFO] [stdout]     |                         ^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:239:33
[INFO] [stdout]     |
[INFO] [stdout] 239 | ...                   (*prev_ptr).next_segment = segment.next_segment;
[INFO] [stdout]     |                       ^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:243:32
[INFO] [stdout]     |
[INFO] [stdout] 243 |                         return (*header).get_start();
[INFO] [stdout]     |                                ^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> libk/src/heap.rs:247:41
[INFO] [stdout]     |
[INFO] [stdout] 247 |                         free_block_it = (*free_block_it).next_segment;
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `stage2` (bin "stage2") due to 2 previous errors; 1 warning emitted
[INFO] [stderr] error: could not compile `libk` (lib test) due to 1 previous error; 12 warnings emitted
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `libk` (lib) due to 1 previous error; 12 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "d7b7707062084ba62700eb6434bd0d2481d77e86d8be3172942d0dee6301aff5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d7b7707062084ba62700eb6434bd0d2481d77e86d8be3172942d0dee6301aff5", kill_on_drop: false }`
[INFO] [stdout] d7b7707062084ba62700eb6434bd0d2481d77e86d8be3172942d0dee6301aff5
